<?php

namespace App\Http\Controllers\back;

use App\Model\weblog;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class WeBlogController extends Controller
{
    //
    public function blog($id)
    {
        $Blog = weblog::where('wid',$id)->get();
        return view('back/writeruser/weblog',compact('Blog'));
    }

    public function blogDel($id)
    {
        $blog_del = weblog::find($id);
        $blog_del->delete();
        return back();

    }
}
